package edu.zut.cs.software.estateagent.notice.domain;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_Advetisement") // 声明数据库表名
@Entity // 声明持久化类

public class Advetisement extends BaseEntity {
	private static final long serialVersionUID = -4393345977047234142L; // 生成序列化ID，防止反序列化失败
	private Long id; // 广告号
	private double playtime; // 广告播放时长
	private double broad; // 宽度
	private double length; // 长
	private String type; // 广告播放类型

	@GeneratedValue(strategy = GenerationType.AUTO) // 主键生成方式
	@Id // 主键映射属性
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public double getPlaytime() {
		return playtime;
	}

	public void setPlaytime(double playtime) {
		this.playtime = playtime;
	}

	public double getBroad() {
		return broad;
	}

	public void setBroad(double broad) {
		this.broad = broad;
	}

	public double getLength() {
		return length;
	}

	public void setLength(double length) {
		this.length = length;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}